import Observe from './Observe.js'
const prototype = Object.create(Array.prototype)
const methods = ['push', 'unshift', 'splice', 'shift', 'pop']
methods.forEach((method) => {
  prototype[method] = function (...args) {
    new Observe(args)
    Array.prototype[method].apply(this, args)
  }
})

export default prototype
